← Back
Editing: rpl_apply_binlog_with_gtid_when_gtid_mode_off.test
############################################################################### # Bug #20436436 NEW->OLD ASSERT FAILURE `GTID_MODE > 0' IN 5.6.24 AT LOG_EVENT.CC:13555 # # Verify that the slave sql thread should report an error and abort # when applying a gtid log event if gtid_mode is OFF on mysql 5.6. # # Steps to Reproduce: # 1) Stop slave threads and clear slave datadir. # 2) Copy the binlog with GTID log events and # relay log index to slave datadir. # 3) Process the binlog with GTID log events # and wait for SQL thread error. ############################################################################### --source include/not_gtid_enabled.inc --source include/have_binlog_format_statement.inc --source include/master-slave.inc --source include/rpl_connection_slave.inc --let $MYSQLD_SLAVE_DATADIR= `select @@datadir` --echo # --echo # Stop slave threads and clear slave datadir. --echo # --source include/stop_slave.inc RESET SLAVE; --remove_file $MYSQLD_SLAVE_DATADIR/slave-relay-bin.000001 --remove_file $MYSQLD_SLAVE_DATADIR/slave-relay-bin.index --echo # --echo # Copy the binlog with Anonymous_GTID log events and --echo # relay log index to slave datadir. --echo # # On Win* platforms path separator is backslash. if (`SELECT CONVERT(@@VERSION_COMPILE_OS USING latin1) IN ('Win32', 'Win64', 'Windows')`) { --copy_file std_data/slave-relay-bin_win.index $MYSQLD_SLAVE_DATADIR/slave-relay-bin.index } if (`SELECT CONVERT(@@VERSION_COMPILE_OS USING latin1) NOT IN ('Win32', 'Win64', 'Windows')`) { --copy_file std_data/slave-relay-bin_linux.index $MYSQLD_SLAVE_DATADIR/slave-relay-bin.index } --copy_file std_data/binlog_transaction_with_GTID.000001 $MYSQLD_SLAVE_DATADIR/slave-relay-bin.000001 --echo # --echo # Process the binlog with Anonymous_GTID log events. --echo # START SLAVE; --echo # --echo # Wait for SQL thread error. --echo # call mtr.add_suppression("Slave.* @@SESSION.GTID_NEXT cannot be set to UUID:NUMBER when @@GLOBAL.GTID_MODE = OFF."); call mtr.add_suppression("Slave worker thread has failed to apply an event"); call mtr.add_suppression("The slave coordinator and worker threads are stopped"); --let $slave_sql_errno= convert_error(ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF) --source include/wait_for_slave_sql_error.inc # Reset slave. # On slower machines, when the SQL thread is killed due to error # ER_CANT_SET_GTID_NEXT_TO_GTID_WHEN_GTID_MODE_IS_OFF, it may happen that the IO # thread is also killed while it is still reading events from the binlog. --let $slave_io_errno= 2013 #CR_SERVER_LOST --let $rpl_allow_error= 1 --source include/stop_slave.inc RESET MASTER; RESET SLAVE; --source include/start_slave.inc # Cleanup --source include/rpl_connection_master.inc --source include/rpl_end.inc
Save File
Cancel